//
//  KDDSectionData.h
//  MengLiao
//
//  Created by xiuxin on 2022/7/15.
//  Copyright © 2022 ZHBen. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "KDDHeader.h"
#import <UIKit/UIKit.h>

@interface KDDSectionData : NSObject <NSCopying>

@property (nonatomic) NSInteger index;

@property (copy,nonatomic) NSString * indexTitle;

@property (strong,nonatomic) __kindof NSObject * headerModel;

@property (strong,nonatomic) NSArray * cellModelList;

@property (strong,nonatomic) __kindof NSObject * footerModel;
//全部数据 包括 header cellList footer
@property (strong,nonatomic) NSArray * modelList;
//可显示其他section Header Footer 默认YES
@property (nonatomic) BOOL headerFooterCross;
//支持跨section背景 默认NO
@property (nonatomic) BOOL decorationCross;
//Section 边距
@property (nonatomic) UIEdgeInsets sectionInsets;
//item 垂直间距
@property (nonatomic) CGFloat minimumLineSpacing;
//item 水平间距
@property (nonatomic) CGFloat minimumInteritemSpacing;
//userInfo
@property (strong,nonatomic) id userInfo;

+ (NSMutableArray<KDDSectionData *> *)copySectionDataList:(NSArray<KDDSectionData *> *)sectionDataList;

+ (KDDSectionData *)copySectionData:(KDDSectionData *)sectionData;

- (instancetype)initWithSectionIndex:(NSInteger)sectionIndex;

- (NSMutableArray *)cellModelListForUpdate;

- (BOOL)addModel:(NSObject *)model viewType:(KDDViewType)viewType;

- (void)clear;

- (BOOL)isEmpty;

@end
